package com.ruoyi.procurementmanagement.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购计划(es_procurement_plan)对象 es_procurement_plan
 *
 * @author ruoyi
 * @date 2025-02-21
 */
public class EsProcurementPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 采购计划编号 */
    @Excel(name = "采购计划编号")
    private String sn;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Integer deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 编制人员ID */
    @Excel(name = "编制人员ID")
    private Integer formationPersonId;

    /** 编制人员 */
    @Excel(name = "编制人员")
    private String formationPerson;

    /** 编制时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "编制时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date formationTime;

    /** 采购说明 */
    @Excel(name = "采购说明")
    private String procurementDesc;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Integer supplierId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 集合供应时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "集合供应时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date supplierTime;

    /** 部门信息 */
    private List<SystemsDept> systemsDeptList;

    /** 平台管理员信息 */
    private List<EsAdminUser> esAdminUserList;

    /** 供应商信息 */
    private List<ErpSuppliers> erpSuppliersList;

    private List<EsProcurementPlanProduct> productList;

    public List<EsProcurementPlanProduct> getProductList() {
        return productList;
    }

    public void setProductList(List<EsProcurementPlanProduct> productList) {
        this.productList = productList;
    }


    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setDeptId(Integer deptId)
    {
        this.deptId = deptId;
    }

    public Integer getDeptId()
    {
        return deptId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setFormationPersonId(Integer formationPersonId)
    {
        this.formationPersonId = formationPersonId;
    }

    public Integer getFormationPersonId()
    {
        return formationPersonId;
    }
    public void setFormationPerson(String formationPerson)
    {
        this.formationPerson = formationPerson;
    }

    public String getFormationPerson()
    {
        return formationPerson;
    }
    public void setFormationTime(Date formationTime)
    {
        this.formationTime = formationTime;
    }

    public Date getFormationTime()
    {
        return formationTime;
    }
    public void setProcurementDesc(String procurementDesc)
    {
        this.procurementDesc = procurementDesc;
    }

    public String getProcurementDesc()
    {
        return procurementDesc;
    }
    public void setSupplierId(Integer supplierId)
    {
        this.supplierId = supplierId;
    }

    public Integer getSupplierId()
    {
        return supplierId;
    }
    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }
    public void setSupplierTime(Date supplierTime)
    {
        this.supplierTime = supplierTime;
    }

    public Date getSupplierTime()
    {
        return supplierTime;
    }

    public List<SystemsDept> getSystemDeptList()
    {
        return systemsDeptList;
    }

    public void setSystemDeptList(List<SystemsDept> systemDeptList)
    {
        this.systemsDeptList = systemDeptList;
    }
    public List<EsAdminUser> getEsAdminUserList()
    {
        return esAdminUserList;
    }

    public void setEsAdminUserList(List<EsAdminUser> esAdminUserList)
    {
        this.esAdminUserList = esAdminUserList;
    }
    public List<ErpSuppliers> getErpSuppliersList()
    {
        return erpSuppliersList;
    }

    public void setErpSupplierList(List<ErpSuppliers> erpSuppliersList)
    {
        this.erpSuppliersList = erpSuppliersList;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("formationPersonId", getFormationPersonId())
            .append("formationPerson", getFormationPerson())
            .append("formationTime", getFormationTime())
            .append("procurementDesc", getProcurementDesc())
            .append("createTime", getCreateTime())
            .append("supplierId", getSupplierId())
            .append("supplierName", getSupplierName())
            .append("supplierTime", getSupplierTime())
            .append("systemDeptList", getSystemDeptList())
            .append("esAdminUserList", getEsAdminUserList())
            .append("erpSuppliersList", getErpSuppliersList())
            .toString();
    }
}
